<template>
	<view class="">
		<view class="pho">
			<image v-for="(item,index) in pic" 
			:src="item.src" mode=""
			@tap="yulan()"
			></image>
			<!-- <image src="https://ykp-new.oss-cn-hangzhou.aliyuncs.com/client/03.jpg" mode=""></image>
			<image src="https://ykp-new.oss-cn-hangzhou.aliyuncs.com/client/03.jpg" mode=""></image>
			<image src="https://ykp-new.oss-cn-hangzhou.aliyuncs.com/client/03.jpg" mode=""></image>
			<image src="https://ykp-new.oss-cn-hangzhou.aliyuncs.com/client/03.jpg" mode=""></image> -->
		</view>
	</view>
</template>

<script>
	export default {
		data () {
			return {
				pic:[
					{src:'https://ykp-new.oss-cn-hangzhou.aliyuncs.com/client/03.jpg'},
					{src:'https://ykp-new.oss-cn-hangzhou.aliyuncs.com/client/03.jpg'},
					{src:'https://ykp-new.oss-cn-hangzhou.aliyuncs.com/client/03.jpg'},
					{src:'https://ykp-new.oss-cn-hangzhou.aliyuncs.com/client/03.jpg'},
					{src:'https://ykp-new.oss-cn-hangzhou.aliyuncs.com/client/03.jpg'},
					{src:'https://ykp-new.oss-cn-hangzhou.aliyuncs.com/client/03.jpg'}
				]
			}
		},
		methods: {
			yulan () {
				uni.navigateTo({
					url:'/pageB/discover/lookphoto'
				})
			}
		}
	}
</script>

<style lang="less" scoped>
	.pho {
		image {
			width:246upx;
			height: 246upx;
			margin-right: 6upx;
		}
		image:nth-child(3n+0) {
			margin-right: 0;
		}
	}
</style>
